<?php 

	require_once('constants.php');
	
	//connecting to database
	$connection = mysql_connect(DB_SERVER, DB_USER, DB_PASS);
	if(!$connection) {
		die("Database connection Failed: " . mysql_error());
	}

	//Select the database
	$db_select = mysql_select_db(DB_NAME, $connection);
	if(!$db_select) {
		die("Database Selection Failed: " . mysql_error());
	}
	
?>